package net.frenopatico.kynes.searchr.services;

import net.frenopatico.kynes.searchr.models.Message;

/**
 * @author Eduardo Ramírez <edu.kynes@gmail.com>
 *
 */
public interface MessageService {

    /**
     * Gets the entity corresponding to the given id.
     * 
     * @param messageId Entity's id.
     * @return Entity corresponding to the given Id.
     */
    Message get( final Long messageId );

    /**
     * Saves the given entity.
     * 
     * @param messageEntity Entity to save.
     * @return The saved entity.
     */
    Message save( final Message messageEntity );
}
